package com.baizhi.cmfz.service.impl;

import com.baizhi.cmfz.dao.AlbumDao;
import com.baizhi.cmfz.entity.Album;
import com.baizhi.cmfz.service.AlbumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * This is a Class.
 *
 * @author zhanglh
 * @date 2019/09/23
 */
@Service
public class AlbumServiceImpl implements AlbumService {
    @Autowired
    private AlbumDao albumDao;

    @Override
    public List<Album> findAlbumList(Integer count) {
        if (count==0) {
            count=null;
        }
        return albumDao.findAlbumList(count);
    }

    @Override
    public Album findAlbumById(int albumId) {
        return albumDao.findAlbumById(albumId);
    }
}
